<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/model/rfidInfo.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/model/itemInfo.php');

$itemId = $_GET['itemId'];
$rfidNumber = $_GET['rfid'];

$itemInfo = new ItemInfo();
$itemInfo->loadByItemId($itemId);
print_r($itemInfo);
$rfid = new RfidInfo();
$rfid->rfidNumber = $rfidNumber;
$rfid->itemInfo_id = $itemInfo->id;
$rfid->insert();

?>
